<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<ui:composition template="/template/template.xhtml">

		<ui:define name="content">
			<h:form id="form">
				<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" globalOnly="true"/>  
				<p:growl id="msgs" />
				<p:panel id="changePassPanel" header="Change password">
					<h:panelGrid columns="2" style="margin-bottom:10px">
						<h:outputLabel for="oldPassword" value="Old Password(*):" />
						<p:password id="oldPassword"
							value="#{mbAuthentication.changePassword.oldPass}"
							required="true" label="Password" size="50" />

						<h:outputLabel for="newPassword" value="New Password(*):" />
						<p:password id="newPassword"
							value="#{mbAuthentication.changePassword.newPass}"
							required="true" label="New Password" size="50" />

						<h:outputLabel for="confirmNewPassword"
							value="Confirm New Password(*):" />
						<p:password id="confirmNewPassword"
							value="#{mbAuthentication.changePassword.confirmNewPass}"
							required="true" label="Confirm New Password" size="50" />
					</h:panelGrid>

					<h:panelGrid columns="1" style="margin-bottom:10px">
						<p:commandButton id="submitButton" value="Submit" update="msgs" ajax="false"
							action="#{mbAuthentication.doChangePass}">
						</p:commandButton>
					</h:panelGrid>
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>
